import java.util.Scanner;

public class Car {
    //成员属性 颜色 
    private String colour;
    //成员属性 品牌 
    private String brand ;
    //成员属性 价格
    private double price;

    //public修饰的get\set方法 用来操作私有的成员属性
    public String getColour() {
        return colour;
    }

    public String getBrand() {
        return brand;
    }

    public double getPrice() {
        return price;
    }
    public void setColour(String colour) {
        this.colour = colour;
    }


    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    
    //提供构造器
    //无参构造器
    public Car(){
    }

    //全参构造器
    public Car(String colour,String brand,double price ){
        this.colour=colour;
        this.brand=brand;
        this.price=price;

    }




    public void show(){
        System.out.println("colour:"+colour+"  brand:"+brand+"  price:"+price);
    }




    //汽车前进
    public void Forward(){
        System.out.println(colour+brand+"forward");
    }
    //汽车后退
    public void Retreat(){
        System.out.println("retreat");
    }
    //左转
    public void TurnLeft(){
        System.out.println("turnleft");
    }
    //右转
    public void TurnRight(){
        System.out.println("turnright");
    }

    public void Control(){
      
            
        
    }
    
}
